package com.czk.model.combile;

public class Client {
    public static void main(String[] args) {
        OrganizationCompnent university=new University("重庆理工大学","区域一流大学");
        // 创建学院
        OrganizationCompnent computerCollage=new Colleage("计算机学院","有钱");
        OrganizationCompnent computerEngnieer=new Colleage("信息工程学院","没钱");
        //添加专业
        computerCollage.add(new Department("计算机科学","好"));
        computerCollage.add(new Department("软件工程","一般"));
        computerEngnieer.add(new Department("信息工程","不好学"));
        computerEngnieer.add(new Department("信息安全","难"));
        // 学院添加到学校中
        university.add(computerCollage);
        university.add(computerEngnieer);
        // 打印
        university.print();
    }
}
